import request from '../utils/request';

export async function loginApi(data) {
  return request({
    url: '/login',
    method: 'POST',
    data
  })
}

export async function registerApi(data) {
  return request({
    url: '/register',
    method: 'POST',
    data
  })
}
